package com.pt.utils;

import lombok.Data;

/**
 * @springboot_sq
 * @Author Pengtao
 * @Date 2023/10/19
 **/
@Data
public class Util {
    /**
     * 前后端响应格式规范
     */
    private Boolean flag;
    private Object data;
    private String msg;

    public Util() {
    }

    public Util(Boolean flag) {
        this.flag = flag;
    }

    public Util(Boolean flag, Object data) {
        this.flag = flag;
        this.data = data;
    }

    public Util(String msg) {
        this.msg = msg;
    }

    public Util(Boolean flag, Object data, String msg) {
        this.flag = flag;
        this.data = data;
        this.msg = msg;
    }
}
